package com.itljm.cxrMarket.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.entity.Merchants;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itljm.cxrMarket.entity.Products;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantsMapper extends BaseMapper<Merchants> {
    List<Merchants> selectMerchantByPage(Page<Products> page, @Param("ew") Wrapper<Products> entityWrapper);

    Integer selectMerchantIdByUserId(String userId);

    Merchants selectMerchantByUserId(Long userId);

    Integer checkMerchantStatusById(Integer merchantId, Integer checkStatus, String checkReason);

    List<Merchants> selectMerchantByName(String merchantName);
}




